Photosensor circuits including a switch mode power converter, a driver transistor and a relay coil

ABSTRACT

Photosensor circuits include a relay coil configured to control application of an alternating current (AC) power source to a load. The circuit includes a pulse width modulator circuit configured to generate a pulse width modulated signal having a pulse width that varies responsive to an average voltage across the relay coil. A photo control circuit is configured to control application of the pulse width modulated signal to a drive transistor responsive to a detected light level. A power circuit includes a rectifier circuit and a voltage divider circuit configured to generate a regulated power signal. A outputs a current responsive to a level of light detected by the phototransistor. A low pass filter circuit is coupled to a first terminal of the phototransistor filters the output current of the phototransistor to provide a light level signal voltage and a select transistor couples the pulse width modulated signal to the drive transistor responsive to the light level signal voltage having a selected level.

BACKGROUND OF THE INVENTION

The present invention relates to photosensor circuits and, more particularly, photosensor circuits for light level switching control.

Photo controllers are devices that automatically turn electrical devices on and off in response to the ambient light level. They are used, for example, on street lights to automatically turn them off during the day and on at night. They are also used on billboard lighting systems to turn the billboard lights on early at night, off late at night during periods of low vehicular traffic, on again during early morning rush hour periods when high traffic levels resume, and then off during the daylight hours. Photo controllers may also be used in reverse, for example, to turn a golf course water fountain on during the day and off at night.

A variety of devices, including photo controllers, may make use of power converters to convert relatively high voltage alternating current to relatively low voltage direct current as is used in many conventional electronic devices. Some conventional power converters make use of large, high-voltage resistors to drop the voltage. However, these resistors are typically inefficient and generate high heat. The heat generated from the resistors may require that the resistors be housed in a large package and include heat dissipating elements, such as heat sinks. Also, the high heat generated by the resistors can lead to problems with reliability and longevity in the resistors and in other electronic components situated near the resistors.

Another conventional approach to power conversion is the use of a switch mode power converter. The switch mode power converters typically require six transistors or a micro-controller to implement. The requirement for multiple transistors or a micro-controller may cause the implementation of switch mode power converters to be cost prohibitive in some applications, such as in photo controllers.

A small, low cost, efficient switch mode power converter is described in U.S. Pat. No. 6,903,942 (“the '942 patent”), which is hereby incorporated herein by reference as if set forth in its entirety. The switch mode power converter of the '942 patent is illustrated in FIG. 1. The circuit shown in FIG. 1 is a switch mode power regulator, which implements power line synchronized pulse width modulation (firing angle modulation). The circuit comprises a power circuit and a control circuit. The power circuit comprises an output stage, which comprises a transistor Q3. The transistor's collector circuit comprises a relay K1 and a diode D6, known as a snubber diode, in parallel with the relay K1.

The circuit further comprises a first capacitor C6 coupled to the base of the transistor Q3, a first resistor R4 coupled in series to the first capacitor C6, and a second resistor R8 coupled in series to the first resistor R4. The circuit shown further comprises a first diode D7 coupled in parallel with the second resistor R8. The circuit further comprises a third resistor R5 coupled to the base of the first transistor Q3 and a Zener diode D1, whose cathode is connected to the first capacitor C6 and a second diode D5, and whose anode is connected to the third resistor R5.

The circuit also comprises a fourth resistor R6 coupled in series with the third diode D5, a relay K1 coupled in series with the fourth resistor R6, a third diode D6 coupled in parallel with the relay K1, a second capacitor C5 coupled to the fourth resistor R6, a fifth resistor R7 coupled in series with the second capacitor C5; and a plug, comprising a load, a neutral, and a line, wherein the load is coupled to the relay K1, the neutral is coupled to the emitter of the transistor Q3, and the line is coupled to the variable resistor.

Transistor Q3 regulates the average voltage across the relay coil K1 by means of pulse width modulation. In the embodiment shown, transistor Q3 comprises a bipolar transistor, however, transistor Q3 may instead be a field-effect transistor (FET), or an insulated gate bipolar transistor (IGBT), provided a diode is placed cathode to drain and anode to source.

Transistor Q3 starts conducting at the start of the power line cycle (0 degrees) and continues conducting until enough current has flowed to maintain the relay voltage at the desired level. When transistor Q3 turns off, a voltage will be induced across the relay coil K1 by magnetic induction. This voltage is partially suppressed by diode D6 in order to prevent the failure of transistor Q3 due to over voltage.

The circuit shown in FIG. 1 utilizes half-wave rectification. Half-wave rectification is less expensive that full-wave rectification and requires less components. Since the relay K1 is highly inductive, it does not require a particularly clean DC signal. For example, the DC signal may include a large amount of ripple, which will not affect the operation of relay K1. Half wave rectification allows the circuit to operate in two modes, positive and negative. During the positive half, the transistor Q3 generates a current pulse, which is regulated by the average voltage across the relay K1. This process is pulse width modulation.

The control circuit shown in FIG. 1 comprises a pulse generator whose pulse width varies proportionately with the difference between the Zener voltage of diode D1 and the average voltage across the relay K1. At the start of the power line cycle (0 degrees), a current will begin to flow through diode D7, resistor R4, capacitor C6, and the base of transistor Q3. The current will cause transistor Q3 to turn on, starting a pulse.

Diode D7 and Resistor R8 provide half-wave power rectification. Resistor R8 is applied across the power rectifier D7, applying a negative current during the negative half of the line cycle. Resistor R8 allows a small negative current to be applied. Resistor R8 provides the negative current that switches on transistor Q3 during the negative half of the line cycle. That negative charge conducted through R8 must exceed the charge that conducts through capacitor C6 to assure transistor Q3 will turn on. Negative current switches on rectifier D6 and turns on transistor Q3, providing a current path between the low voltage side of capacitor C5 through resistor R7.

In the embodiment shown, without resistor R7, transistor Q3 would not saturate during the current pulse, causing excessive power to be dissipated in transistor Q3. The transistor Q3 collector voltage would drop until diode D5 would conduct, diverting base current from transistor Q3 and preventing transistor Q3 from saturating. During the transistor Q3 current pulse, a voltage is generated across resistor R7 that will keep diode D5 from conducting and preventing transistor Q3 saturation. To prevent diode D5 from conducting during the positive half of the line cycle, a voltage of at least the capacitor C6 ripple voltage must drop across resistor R7. Transistor Q3 does not start conducting until the instantaneous line voltage is approximately twice the Zener voltage of diode D1.

Capacitor C5 filters the voltage across the relay K1. If the value of C5 is too small, the relay coil current will oscillate on and off during power up causing the relay contacts to chatter. Therefore, capacitor C5 shown is large enough a value to prevent this chattering of the relay contacts.

Capacitor C6 is pre-set to the output voltage and provides a timing functionality. During the positive half of the line cycle, a current flows through resistor R4 to capacitor C6, causing it to start charging, and through the base of transistor Q3, which will turn transistor Q3 on. Transistor Q3 remains on as long a current flows through capacitor C6. Increasing the value of capacitor C6 has the positive effect of increasing the gain of the feed back loop of the regulator circuit. However, increasing the value also slows the time it takes for the current pulse of transistor Q3 to be turned off, increasing commutation losses in transistor Q3, and increases the time for the regulator circuit to stabilize at startup.

As this current flows, the voltage across capacitor C6 increases. When the voltage across capacitor C6 plus the base to emitter voltage of transistor Q3 reaches the Zener voltage of diode D1, the current flowing through capacitor C6 ceases because the current is diverted to the Zener diode D1. Zener diode D1 provides the reference voltage to which the relay coil voltage will be regulated. When the current through capacitor C6 ceases, no current flows to the base of transistor Q3, turning it off and ending the pulse.

During the negative half of the line cycle, a current flows through resistor R8, diode D6, the collector and base of transistor Q3, and resistor R5. This current will turn transistor Q3 on. Also, during the negative half of the power line cycle, resistor R5 provides part of the current path through which capacitor C6 discharges into C5.

During the positive half of the line cycle at the end of the current pulse, resistor R5 causes transistor Q3 to more rapidly turn off, reducing energy losses during the commutation of transistor Q3. Resistor R5 will shunt some of the current that would otherwise go through the base of transistor Q3 during the pulse of transistor Q3 base current. If the current shunted is too much, the base current of transistor Q3 will not be enough to turn transistor Q3 completely on.

Capacitor C6 will now discharge into capacitor C5 until their voltages equalize. The voltage across capacitor C5 is equal to the average voltage across the relay coil K1. Diode D7 disconnects during the negative half of the power line cycle assuring that the relay current is direct current. As such, the discharge of capacitor C6 into capacitor C5 determines the pulse width for operation of the transistor Q3, which in turn allows current flow to establish the average mean voltage of relay coil K1.

The circuit shown in FIG. 1 also comprises a voltage averaging circuit, further comprising resistor R6, capacitor C5, and resistor R7. The averaging circuit essentially measures the average voltage across the relay coil K1. The average voltage across capacitor C5 is the voltage to which the circuit is regulated. The purpose of resistor R7, apart from forming part of the averaging circuit is also to ensure that diode D5 will not conduct during the positive half of the power line cycle. The current to resistor R8 flows through diode D6, turning it on, and then the current flows through the collector of transistor Q3, causing it to turn on. When transistor Q3 turns on, it creates a base current between the emitter of transistor Q3 and the negative end of capacitor C5. When the current begins flowing, diode D5 starts conducting, which causes capacitor C6 to discharge until at the same voltage as capacitor C5. The capacitors reach equal voltage at the average output voltage.

This feedback of the output voltage into the pulse forming circuit determines how long each cycle transistor Q3 will be turned on. (The feed back loop is as follows. Average voltage of relay coil K1 voltage→voltage of capacitor C5→voltage of capacitor C6→duty cycle of transistor Q3 commutation→average voltage of relay coil K1 voltage.) If the average voltage across the relay coil K1 is too low, the voltage across capacitor C6 will be less than the Zener voltage of diode D1 resulting in a longer On time of transistor Q3, which will cause the average relay coil voltage to increase. If the average voltage across the relay coil K1 is too high the voltage across capacitor C6 will approximate the Zener voltage of diode D1, resulting in a shorter On time of transistor Q3, which will cause the average relay coil voltage to decrease.

The circuit shown in FIG. 1 also comprises a plug J4. Plug J4 may be a twist lock Hubble type connector, used to connect a line voltage, neutral voltage, and load. The circuit also comprises a metal oxide variable resistor MOV. MOV is not necessary for the operation of the circuit. It provides a level of protection, eliminating high voltage transients like might come from a lightning strike.

SUMMARY OF THE INVENTION

Embodiments of the present invention provide photosensor circuits including a relay coil configured to control application of an alternating current (AC) power source having a negative half and a positive half of a line cycle to a load. The circuit includes a pulse width modulator circuit configured to generate a pulse width modulated signal having a pulse width that varies responsive to an average voltage across the relay coil. A drive transistor is coupled between the relay coil and a neutral bus that controls the average voltage across the relay coil responsive to the pulse width modulated signal. A photo control circuit is configured to control application of the pulse width modulated signal to the drive transistor responsive to a detected light level. A power circuit includes a half-wave rectifier coupled to the power source that is configured to provide a power signal to the pulse width modulator circuit and a regulated power signal to the photo control circuit during one of the halves of the line cycle of the AC power source. The power signal is a square wave and the power circuit further includes a rectifier circuit and a voltage divider circuit configured to generate the regulated power signal from the power signal. The photo control circuit includes a phototransistor. The phototransistor has a first terminal coupled to the regulated power signal through a first resistor and a second terminal that outputs a current responsive to a level of light detected by the phototransistor. A low pass filter circuit is coupled to the first terminal of the phototransistor that filters the output current of the phototransistor to provide a light level signal voltage and a select transistor couples the pulse width modulated signal to the drive transistor during the one of the halves of the line cycle of the AC power source responsive to the light level signal voltage having a selected level.

In further embodiments, the rectifier circuit is a diode having a first terminal coupled to the power signal and a second terminal coupled to the voltage divider circuit. The photosensor circuit further includes a first capacitor coupled between the second terminal of the phototransistor and the second terminal of the rectifier circuit diode that modulates an amount of positive feedback through the first terminal of the phototransistor proportional to a current flowing through the relay coil to provide hysteresis to control of the relay coil by the photosensor circuit and a second capacitor coupled between the first and second terminal of the phototransistor.

In other embodiments, the drive transistor is a Darlington pair of transistors. The Darlington pair of transistors includes a first transistor and a second transistor. The first transistor has an emitter coupled to a base of the second transistor. The circuit further includes a resistor coupled between the base of the second transistor and the neutral bus. A resistor may be coupled between the normally open relay coil and the drive transistor and a capacitor may be coupled between a terminal of the select transistor that couples the pulse width modulated signal to the drive transistor and the resistor coupled between the normally open relay coil and the drive transistor.

In further embodiments, the pulse width modulator circuit includes a Zener diode coupled between the second terminal of the phototransistor and the power signal. The pulse width of the pulse width modulated signal varies proportionally with a difference between a Zener voltage of the Zener diode and the average voltage across the relay coil. The phototransistor defines a current path for a positive feedback signal generated across the Zener diode to provide the positive feedback. A radio frequency filter circuit may also be provided, including a resistor that couples the Zener diode to the power signal and a capacitor coupled between the select transistor and the drive transistor.

In some embodiments, the photosensor circuit is a street lighting photo control device and the load comprises street lighting and the relay coil is configured to activate to switch on the street lighting responsive to detection of less than a minimum light level by the phototransistor.

In other embodiments, the lowpass filter circuit includes a delay resistor having a first terminal coupled to the first terminal of the photosensor and a delay capacitor coupled between a second terminal of the delay resistor and the neutral bus that are configured to provide the low pass filter circuit an asymmetric delay providing different turn off and turn on times for the load. The lowpass filter circuit may include a filter transistor coupled to the regulated power supply, the first terminal of the delay resistor and the second terminal of the delay resistor. The photosensor circuit may be a street lighting photo control device and the load may be street lighting and the photosensor circuit may be configured to turn on the street lighting more rapidly than it turns off the street lighting. The one of the halves of the line cycle of the AC power source may be the positive half and the half wave rectifier may include a resistor coupled to the AC power source that provides a negative current that activates the drive transistor during the negative half of the line cycle.

In yet other embodiments, a photosensor circuit includes a relay coil configured to control application of an alternating current (AC) power source having a negative half and a positive half of a line cycle to a load. A pulse width modulator circuit is configured to generate a pulse width modulated signal having a pulse width that varies responsive to an average voltage across the relay coil. A drive transistor is coupled between the relay coil and a neutral bus that controls the average voltage across the relay coil responsive to the pulse width modulated signal. The drive transistor is a Darlington pair of transistors. A photo control circuit is configured to control application of the pulse width modulated signal to the drive transistor responsive to a detected light level and a half-wave rectifier coupled to the power source is configured to provide a power signal to the pulse width modulator circuit and the photo control circuit during one of the halves of the line cycle of the AC power source.

The photo control circuit includes a phototransistor, the phototransistor having a first terminal coupled to the power signal and a second terminal that outputs a current responsive to a level of light detected by the phototransistor. A low pass filter circuit is coupled to the second terminal of the phototransistor that filters the output current of the phototransistor to provide a light level signal voltage. A select transistor couples the pulse width modulated signal to the drive transistor during the one of the halves of the line cycle of the AC power source responsive to the light level signal voltage having a selected level. A capacitor coupled between the second terminal of the phototransistor and the neutral bus modulates an amount of positive feedback through the first terminal of the phototransistor proportional to a current flowing through the relay coil to provide hysteresis to control of the relay coil by the photosensor circuit.

In other embodiments, the Darlington pair of transistors includes a first transistor and a second transistor. The first transistor has an emitter coupled to a base of the second transistor. The circuit further includes a resistor coupled between the base of the second transistor and the neutral bus. The pulse width modulator circuit may include a Zener diode coupled between the first terminal of the phototransistor and the neutral bus and the photosensor circuit may further include a resistor that couples the Zener diode to the first terminal of the phototransistor and a capacitor coupled in parallel with the resistor and the phototransistor. The photo control circuit may further include a first capacitor coupled between the select transistor and the Zener diode and the pulse width modulator circuit may include a second capacitor coupled in parallel with the relay coil. The first and second capacitors may be ceramic capacitors.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a circuit diagram of a power regulator according to the prior art.

FIG. 2 is a circuit diagram of a photo-controlled power regulator according to the prior art.

FIG. 3 is a circuit diagram of a photosensor circuit described in co-pending U.S. patent application Ser. No. 12/106,631, filed Apr. 21, 2008.

FIGS. 4A-4C are circuit diagrams of portions of a photosensor circuit according to some embodiments of the present invention.

FIGS. 5A-5B are circuit diagrams of portions of a photosensor circuit according to some embodiments of the present invention.

FIG. 6 is a circuit diagram of a photosensor circuit according to some embodiments of the present invention.

FIG. 7 is a circuit diagram of a photosensor circuit according to further embodiments of the present invention.

DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION

The present invention now will be described more fully hereinafter with reference to the accompanying drawings, in which illustrative embodiments of the invention are shown. In the drawings, the relative sizes of regions or features may be exaggerated for clarity. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.

It will be understood that, although the terms first, second, etc. may be used herein to describe various elements, components, regions, layers and/or sections, these elements, components, regions, layers and/or sections should not be limited by these terms. These terms are only used to distinguish one element, component, region, layer or section from another region, layer or section. Thus, a first element, component, region, layer or section discussed below could be termed a second element, component, region, layer or section without departing from the teachings of the present invention.

Spatially relative terms, such as “beneath”, “below”, “lower”, “above”, “upper” and the like, may be used herein for ease of description to describe one element or feature's relationship to another element(s) or feature(s) as illustrated in the figures. It will be understood that the spatially relative terms are intended to encompass different orientations of the device in use or operation in addition to the orientation depicted in the figures. For example, if the device in the figures is turned over, elements described as “below” or “beneath” other elements or features would then be oriented “above” the other elements or features. Thus, the exemplary term “below” can encompass both an orientation of above and below. The device may be otherwise oriented (rotated 90° or at other orientations) and the spatially relative descriptors used herein interpreted accordingly.

As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless expressly stated otherwise. It will be further understood that the terms “includes,” “comprises,” “including” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being “connected” or “coupled” to another element, it can be directly connected or coupled to the other element or intervening elements may be present. Furthermore, “connected” or “coupled” as used herein may include wirelessly connected or coupled. As used herein, the term “and/or” includes any and all combinations of one or more of the associated listed items.

Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of this specification and the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.

As described in the '942 patent, the power regulator illustrated in FIG. 1 may be used in a lighting control system as shown in the circuit diagram of FIG. 2. The circuit shown in FIG. 2 causes a switch to close at dusk and open at dawn, such as for the control of streetlights. The power line voltage of the circuit shown can range from approximately 87 VAC to 305 VAC and have a power line frequency of 50 Hz or 60 Hz. This flexibility may allow the photo control to be usable in almost any alternating current application. To aid in stable operation, the control circuit operates as a Schmitt trigger, switching the output negative at a threshold voltage and not switching back until voltage drops to a lower threshold voltage.

The voltage at the relay coil K1 is converted from alternating current to direct current and regulated to provide for the correct operation of the relay K1. As noted above, because of the inductive nature of the relay coil K1, its voltage can have a large ripple component and it will still operate correctly. The regulated power supply circuit shown in FIG. 1 supplies this regulated direct current to the relay coil K1. In FIG. 2, transistor Q2 provides a switch to turn the regulated power supply circuit on or off in order to turn on or off the voltage to the relay coil K1 and hence turn a lamp or the like off or on. The maximum V drain to source will be equal to the Zener voltage of diode D1, 15 V. The maximum drain current is equal to the maximum current that flows through resistor R4.

The current of phototransistor Q I increases with an increase of ambient light intensity and decreases with a decrease of ambient light intensity. The current from phototransistor Q1 passes through and causes a voltage across resistors R1 and R2. This voltage is proportional to the ambient light level and is referred to as the light signal. As phototransistor Q1's output is a current, the resistor R2, is used to transform current to voltage. R1 serves to convert the feedback current generated by the charge pump made up of D2, D3, and C2 into a voltage. By adjusting the resistance value of R1 the amount of feedback can be adjusted. This resistor could be called a hysteresis control. In most photo control circuits used in street lighting, it is desired that the turn off light level be twice the turn on light level. The value of R1 can be changed until this ratio of on to off light levels is achieved.

As the phototransistors may vary, R2 is usually adjusted to normalize the sensibility to the desired level. R2 may be called the “gain resistor”.

Capacitor C1 filters the light signal, removing high frequency noise components that might be induced by lighting, radio interference, or other causes. If this circuit is shielded from external electromagnetic influences, such as radio interference or electromagnetic pulses as caused by lightning, C1 may not be necessary. The low pass filter or time delay circuit, comprising resistor R3 and capacitor C3, causes the light signal to be delayed approximately 1.5 seconds. The delay generally prevents short duration, transient light sources, such as a passing car headlights or a lighting flash causing the lamp to blink on and off. The output of the low pass filter is applied to the gate of phototransistor Q2, which is commuted on or off by the light signal, turning the regulated power supply circuit on or off in order to turn on or off the voltage to the relay coil K1 and hence turn the lamp off or on. A diode may be provided in parallel with resistor R3 to provide an asymmetric delay, allowing turn off and turn on times for street lighting or the like to differ.

The Zener diode D4 ensures that the phototransistor Q1 has a positive voltage across it. Although diode D4 is illustrated in FIG. 2, as is clear to one skilled in the art, it is not necessary. For example, diode D4 can be replaced with a short circuit, and the circuit should continue to function properly.

Capacitor C4 helps make the circuit resistant to radio interference, lightning discharges, and other interference. Like capacitor C1, if this circuit is shielded from external electromagnetic influences such as radio interference or electromagnetic pulses as caused by lightning, C4 may not be necessary.

Diodes D2 and D3 and capacitor C2 form a charge pump circuit. The charge pump circuit converts peak-to-peak alternating current voltage found across resistor R5 into a direct current of the needed polarity to produce positive feedback. The charge pump circuit provides positive feedback proportional to the relay current (output) to create a Schmitt trigger. The Schmitt trigger input to the phototransistor Q1 helps provide stability.

The transistor Q3 commutes the power to the relay, allowing the addition of only one transistor to the circuit to provide photo control. Positive voltage is derived from the low voltage end of resistor R4.

Further photosensor circuits are described in co-pending U.S. patent application Ser. No. 12/106,631 filed Apr. 21, 2008, entitled “Photosensor Circuits Including a Switch Mode Power Converter,” the disclosure of which is incorporated by reference herein as if set forth in its entirety. FIG. 3 corresponds to FIG. 5 of U.S. patent patent application Ser. No. 12/106,631. FIG. 3 illustrates a photosensor circuit in which the charge pump circuit of the circuit of FIG. 2 is not used for the positive feedback, allowing a reduction in the components of the circuit and a resultant cost savings, and in which a transistor, instead of a diode, is used to discharge the low pass filter capacitor of the circuit of FIG. 2 to provide different turn on and turn off times for the load.

As seen in the circuit of FIG. 3, in addition to not including the charge pump circuit of the circuit of FIG. 2, including diodes D2 and D3 and capacitor C2, the gain resistor R2 of the circuit of FIG. 2 is not included in the circuit of FIG. 3. In the circuit of FIG. 2, the purpose of the charge pump circuit was to create the positive feed back necessary to create a Schmitt trigger response. In contrast, the circuit of FIG. 3 obtains the desired positive feed back from the alternating current ripple across diode D1, which is conducted through phototransistor Q1, adjusted in magnitude by capacitor C1 and rectified by transistor Q4. As a result, three or more components may be eliminated to reduce the cost of the photosensor circuit.

As seen in the circuit of FIG. 3, the photosensor circuit, includes a normally closed relay coil K1. The relay coil K1 controls application of an alternating current (AC) power source LINE/J1, which carries both negative half and a positive half of a line cycle, to a load LOAD/J2, such as a street light. A second reference polarity NEUTRAL/J3 is also provided. The illustrated relay coil K1 operates a normally closed switch so that the default state for the street lighting is turned on and application of a sufficient average voltage to the relay coil K1 turns off the street lighting in the illustrated circuit of FIG. 3.

As discussed with reference to FIG. 1 above, a pulse width modulator circuit, including components C6, D1, R4 and R5, that generates a pulse width modulated signal having a pulse width that varies responsive to an average voltage across the relay coil K1. A drive transistor Q3 coupled between the relay coil K1 and the neutral bus NEUTRAL/J3 controls the average voltage across the relay coil K1 responsive to the pulse width modulated signal input to the gate of the transistor Q3.

For the circuit illustrated in FIG. 3, a photo control circuit is included that controls application of the pulse width modulated signal to the drive transistor Q3 responsive to a detected light level. The half-wave rectifier, including components D7 and R8, is coupled to the power source and provides a power signal to the pulse width modulator circuit and the photo control circuit during one of the halves of the line cycle of the AC power source LINE/J1.

As seen in the circuit of FIG. 3, the photo control circuit includes the phototransistor Q1. The phototransistor Q1 has a first terminal coupled to the power signal, through resistor R4, and a second terminal that outputs a current responsive to a level of light detected by the phototransistor Q1. The select transistor Q2 couples the pulse width modulated signal to the base of the drive transistor Q3 during the rectified half of the line cycle of the AC power source LINE/J1 passed by the diode D7 responsive to the light level signal voltage having a selected level input to the gate of the transistor Q2.

For the circuit of FIG. 3, a capacitor C1 is used to adjust the amount of positive feedback that is added to the light signal. The capacitor C1 is coupled between the second terminal of the phototransistor and the neutral bus NEUTRAL/J3. The feedback signal, as it is conducted through the phototransistor Q1, is a alternating current signal proportional to the current flowing through the relay coil K1. The capacitor C1 modulates how much of this feed back signal is added to the light signal by shunting the excess feed back signal to the neutral bus NEUTRAL/J3. This alternating current feedback signal is converted to the required direct current signal by the transistor Q4.

As seen in the circuit of FIG. 3, a low pass filter circuit, including components R3 and C3, filters the output current of the phototransistor Q1 to provide a light level signal voltage. The low pass filter circuit also includes the delay resistor R3, which has a first terminal coupled to the second terminal of the photosensor Q1. The delay capacitor C3 is coupled between a second terminal of the delay resistor R3 and the neutral bus NEUTRAL/J3. A discharge transistor Q4 is coupled in parallel with the delay capacitor C3 and has a base coupled to the second terminal of the photosensor Q1. The discharge transistor Q4 discharges the delay capacitor C3 to provide the low pass filter circuit an asymmetric delay providing different turn off and turn on times for the load.

Thus, for the circuit of FIG. 3, the transistor Q4, illustrated as a PNP transistor, is used to provide different turn-off and turn-on times. In some photosensor applications, an infra red blocking filter is provided over the phototransistor Q1, which generally requires the feedback gain resistor R1 to be increased in value to compensate for the reduction in light sensitivity generally caused by the infra red blocking filter. The increased value of R1 may cause the turn-on delay to lengthen beyond acceptable limits in some cases. By replacing a diode with the transistor Q4, the turn-on delay may be decreased to a greater degree. Also shown in the circuit of FIG. 3 is an additional resistor R9. Resistor R9 may operate to limit or even prevent the V_(EBO) of the transistor Q4 from exceeding its maximum rating.

More generally, with respect to the circuit of FIG. 3, phototransistor Q1 may provide both a current signal proportional to an ambient light level detected by the phototransistor QT and a path for positive feedback of a signal generated across zener diode D1. The gain resistor R1 may convert the current signal of the phototransistor Q1 to a voltage signal having an amplitude selected to cause the photocontrol to operate at a desired ambient light level as detected by the phototransistor Q1. The capacitor C1 may have a value selected so as to modulate the amount of positive feedback, which feedback in turn determines the amount of hysterisis provided by the Schmitt Trigger aspect of the photosensor circuit.

The resistor R3, in combination with the capacitor C3, forms a timed delay circuit that may be used to limit or prevent the photo control from turning off/on during lightening flashes or other momentary light sources detected by the phototransistor Q1.

The transistor Q4 in the illustrated configurations, in response to decreasing light levels, may be used to rapidly discharge capacitor C3 to cause the photosensor circuit to substantially instantly (very quickly) turn-on in response to darkness. Such an approach, for example, may provide for, among other things, rapid testing of photocontrol operations. The transistor Q4 may also detect negative peaks of a positive feedback ripple signal creating a direct current positive feedback signal. The transistor Q2, in response to a detected light level generated voltage signal applied to its gate, may be used to turn the photocontrol relay K1 on and off. Zener diode D1 may provide a reference voltage for the regulation of the relay K1 coil current, provide an operating voltage to the phototransistor Q1 and a ripple voltage generated across the Zener diode D1, which may generally be proportional to relay coil current and may therefore be useful as a positive feedback source for the Schmitt trigger operation as described previously. The resistor R9 may be used to limit the maximum voltage applied across the terminals of the transistor Q4, which may limit or prevent damage to the transistor Q4.

The circuit, including the transistor Q4, may have a turn on delay of 20 milliseconds for substantially instant turn on while a turn off delay of 7.5 seconds may be provided. If the ratio of turn off to turn on light levels becomes too high, the capacitance of capacitor C1 may be increased. If the turn off delay becomes to short, the capacitance of capacitor C3 may have its value increased. In particular cases, resistor R9 has a 4.3 MΩ resistance, capacitor C1 has a 2200 picofarads capacitance and transistor Q4 comprises a part number 2N3906 transistor available from Fairchild Semiconductors, Inc. In addition, the phototransistor Q1 in some cases may be Model LTR309-R available from LiteOn Corporation of Freemont Calif.

Embodiments of the present invention will now be described with reference to FIGS. 4A to 6. In particular, the embodiments of FIG. 6, unlike those of FIG. 3, include a normally open relay K1, which may be used in photo control applications where it is desired that the switch mode converter energize the relay coil K1 during darkness and not during the daylight as with the circuit of FIG. 3. The embodiments of FIG. 6 further differ from those of FIG. 3 in that the single NPN transistor Q3 shown in FIG. 3 is replaced by a Darlington pair of NPN transistors Q5, Q6. As such, the embodiments of FIG. 6 may increase the current gain of the circuit and decrease the amount of current required to commute the relay coil K1 current, as will be further described herein.

Referring now to the circuit illustrated in FIG. 4A, the logic inversion from FIG. 3 to FIG. 6 may be accomplished by coupling the emitter of phototransistor Q1 to the neutral bus J3 and providing a pull-up resistor R1 to a power source, indicated as power source PS2 in FIG. 4A. In contrast, as shown in the circuit of FIG. 3, the emitter of phototransistor Q1 is coupled through the resistor R1 to the neutral bus J3. The embodiments of FIG. 6 are configured to provide a photocontrol circuit that responds substantially instantly to darkness but more slowly to daylight. The arrangement of resistor R3, capacitor C3 and transistor Q4 as shown in FIG. 3 provided such an arrangement of operation for the logic of FIG. 3. In contrast, FIG. 4B shows an arrangement of resistor R3, capacitor C3 and transistor Q4 configured to provide a slower response to daylight than darkness for the circuit of FIG. 6. Finally, FIG. 4C illustrates a combination of the circuits of FIGS. 4A and 4B. More particularly, the output of V2 shown in FIG. 4C may be integrated into a switch mode converter, such as illustrated in FIG. 1, by being applied to the gate of transistor Q2 in the circuit of FIG. 6.

The circuit of FIG. 6 further includes a different approach to providing a voltage source to that used in the circuits of FIGS. 2 and 3. More particularly, the voltage across the Zener diode D1 of the circuit of FIG. 2 is further processed with additional circuitry shown in FIG. 5A to provide a desired regulated voltage source to be applied in the circuits of FIGS. 5B and 6. In particular, when the phototransistor Q1 of FIG. 5B senses darkness, the voltage across the Zener diode D1, as in the circuit of FIG. 2, is a DC voltage. Such a DC voltage, if adjusted to the required voltage by the voltage divider circuit of FIG. 5A, may be a suitable voltage source to be applied for use with the circuit of FIG. 5B. However, during daylight, the voltage across Zener diode D1 of FIG. 2 is a square wave, which likely makes it not as suitable of a voltage source (power supply) to be applied for use in the circuitry of FIGS. 5B and 6. Note that the voltage across the Zener diode D1 of FIG. 2 corresponds to PSI of FIGS. 5A and 5B. In addition, FIGS. 5B and 6 include incorporation of the combined rectifier and voltage divider circuit of FIG. 5A for further processing the voltage signal PS1 to provide the voltage signals PS2 and PS3. In particular, the diode D4 is included to rectify the squarewave of voltage signal PS1 to provide a suitable DC voltage PS3, which is further adjusted by a voltage divider circuit including resistors R2 and R3, to provide a regulated power supply (voltage signal) PS2. It is this voltage signal PS2 that is applied to the circuit of FIG. 4C as incorporated in the combination with the switch mode converter in the circuit of FIG. 6.

In photosensor circuits, such as the photocontrol circuits shown in the embodiments of FIG. 6, it may be desirable to apply positive feedback to the sensor circuit to increase the stability of the circuit by creating a Schmitt trigger. This positive feedback can be obtained in the circuit embodiments of FIG. 6 by decreasing the value of capacitor C1. Doing so may cause the voltage across capacitor C1 to be less when the relay coil current is turned off than when it is turned on, which may provide a suitable source of positive feedback. However, reducing the value of capacitor C1 may further increase an AC ripple across capacitor C1, which may cause the circuit not to function correctly. To limit any such AC ripple effect, a capacitor C2 is shown positioned across the phototransistor Q1 in the embodiments of FIG. 6. As such, numerous advantages of the photocontrol circuits of FIGS. 2 and 3 may be provided by some embodiments of the present invention as illustrated in FIG. 6 in combination with the use of an inverted logic and a normally open relay coil K1.

Thus, the photosensor circuit in the embodiments of FIG. 6 provides a normally open relay coil K1 configured to control application of an alternating current (AC) power source J1 having a negative half and a positive half of a line cycle to a load J2. A pulse width modulator circuit, including capacitor C6, Zener diode D1, resistor R4 and resistor R5, is provided that is configured to generate a pulse width modulated signal having a pulse width that varies responsive to an average voltage across the relay coil K1. A drive transistor Q3 (including transistors Q5 and Q6) is coupled between the relay coil K1 and the neutral bus J3. The drive transistor Q3 controls the average voltage across the coil K1 responsive to the pulse width modulated signal.

Also included in the embodiments of FIG. 6 is a photocontrol circuit configured to control application of the pulse width modulated signal to the drive transistor Q3 responsive to a detected light level. A power circuit included in embodiments of FIG. 6 includes a half-way rectifier, including diodes D7 and resistor R8, coupled to the power source J1. The power circuit is configured to provide a power signal PS1 to the pulse width modulator circuit and a regulated power signal PS2 to the photocontrol circuit during one of the halves of the line cycle of the AC power source J1. The power signal PS1 comprises a squarewave and the power circuit further includes a rectifier circuit configured to generate the regulated power signal PS2 from the power signal PS1. As shown in FIG. 6, the rectifier circuit is a diode D4 and the voltage divider circuit includes resistors R2 and R3. The diode D4 includes a first terminal coupled to the power signal PS1 and a second terminal coupled to the voltage divider circuit R2, R3.

In the embodiments of FIG. 6, the photocontrol circuit includes a phototransistor Q1. The phototransistor Q1 has a first (collector) terminal coupled to the regulated power signal PS2 through a first resistor R1 and a second (emitter) terminal that outputs a current responsive to a level of light detected by the phototransistor Q1. Also seen in the photocontrol circuit for the embodiments of FIG. 6 is a low-pass filter circuit including a resistor R3 and capacitor C3. The low-pass filter circuit is coupled to the first terminal of the phototransistor Q1 and filters the output current of the phototransistor Q1 to provide a light level signal voltage V2. The photocontrol circuit further include a select transistor Q2 that couples the pulse width modulated signal to the drive transistor Q3 (more particularly to the base of the transistor Q6) during the one of the halves of the line cycle of the AC power source J1 responsive to the light level signal voltage V2 having a selected level. More particularly, with normally open relay coil K1, the circuit of FIG. 6 energizes the relay coil K1 during darkness and not during daylight. In other words, the detected light level drops below the selected level to energize the relay coil K1 during darkness.

As also shown in the embodiments of FIG. 6, the photosensor circuit further includes a first capacitor C1 coupled between the second (emitter) terminal of the phototransistor Q1 and the second terminal of the rectifier circuit diode D4 that modulates an amount of positive feedback through the first (collector) terminal of the phototransistor Q1 proportional to a current flowing to the relay coil K1 to provide hysteresis to control of the relay coil K1 by the photosensor circuit. In addition, a second capacitor C2 is shown coupled between the first and second terminals of the phototransistor Q1.

Resistors R10, R11 are coupled between the normally open relay coil K1 and the drive transistor Q3 and a capacitor C9 is coupled between an (emitter) terminal of the select transistor and the resistor R11 coupled between the normally open relay coil K1 and the drive transistor Q3.

As mentioned above, the pulse width modulator circuit includes the Zener diode D1. Zener diode D1 is coupled between the second (emitter) terminal of the phototransistor Q1 and the power signal PS1. The width of the pulse width modulated signal varies proportionately with the difference between the Zener voltage of the Zener diode D1 and the average voltage across the relay coil K1. The phototransistor Q1 defines a current path for a positive feedback signal generated across the Zener diode D1 to provide the positive feedback.

The circuit of FIG. 6 further includes a radiofrequency filter circuit. The radiofrequency filter circuit may operate to reduce radio emissions, such as filtering out AM broadcast signals, and may slow the turn on and turn off frequency of the photosensor circuit. For the embodiments shown in FIG. 6, the radiofrequency filter circuit includes a resistor R14 that couples the Zener diode D1 to the power signal PS1 and a capacitor C9 coupled between the select transistor Q2 and the drive transistor Q3.

The lowpass filter circuit, as described above, includes the delay resistor R3 having a first terminal coupled to the first (collector) terminal of the photosensor Q1 and the delay capacitor C3 coupled between a second terminal of the delay resistor R3 and the neutral bus J3 (NEUTRAL) that are configured to provide the low pass filter circuit an asymmetric delay providing different turn off and turn on times for the load J1 (LOAD). The lowpass filter circuit may further include the filter transistor Q4 coupled to the regulated power supply PS2, the first terminal of the delay resistor R3 and the second terminal of the delay resistor R3. The photosensor circuit may be a street lighting photo control device and the load may be street lighting. The photosensor circuit may be configured to turn on the street lighting more rapidly than it turns off the street lighting.

For the photosensor circuit of FIG. 6, the relay coil K1 may be configured to activate to switch on the street lighting responsive to detection of less than a minimum light by the phototransistor Q1. The one of the halves of the line cycle of the AC power source J3 may be the positive half and the half wave rectifier may include the resistor R8 coupled to the AC power source J3 that provides a negative current that activates the drive transistor Q3 during the negative half of the line cycle.

As discussed above, the NPN transistor Q3 of FIGS. 2 and 3 is replaced in the embodiments of FIG. 6 with a Darlington pair, including a first transistor Q6 and a second transistor Q5. The emitter terminal of the first transistor Q6 is coupled to the base terminal of the second transistor Q5. A resistor R12 is also shown in FIG. 6 that is coupled between the base of the second transistor Q5 and the neutral bus J3, which may operate so as to cause the transistor Q5 to turn off more completely.

As a normally open relay coil K1 may require increased relay coil current, the use of a Darlington pair of transistors as shown in FIG. 6 may be beneficial. Rather than increasing the base current of the transistor Q5 by, for example, reducing the resistance value of resistor R4 and increasing the capacitance value of capacitor Q6, the current gain of the Darlington pair is utilized. As a result, smaller and less expensive components may be used for resistor R4 and capacitor C6. More particularly, use of a Darlington pair reduces the required base current of transistor Q5 by a factor equal to the current gain of the transistor Q6 (typically a factor of 100) resulting in the resistor R4 and the capacitor C6 being made smaller and less costly.

Referring now to the circuit diagram of FIG. 7, further embodiments of the present invention will now be described. The embodiments of FIG. 7 differ from the photocontrol circuit of FIG. 3 in the replacement of the single NPN transistor Q3 with a Darlington pair of transistors including a first transistor Q6 and an additional NPN second transistor Q5. A resistor R10 is also shown in the illustrated embodiments, which may cause the transistor Q5 to more completely turn off. As with the Darlington pair shown in the embodiments of FIG. 6, the addition of an additional transistor increases the current gain of the circuit, thereby decreasing the amount of current required to commute the relay coil K1 current. This arrangement may allow resistor R4 and resistor R5 to be increased in resistance value and capacitor C6 to have a decreased capacitance value. The power dissipation of resistors R4 and R5 may be decreased, possibly reducing their size and cost. Furthermore, the capacitance value of capacitor C6 in the circuit of FIG. 3 generally used an aluminum electrolytic-type capacitor. For the circuit of FIG. 7 (and FIG. 6) a smaller, cheaper and generally longer lived ceramic-type capacitor may be used. The reduction in the capacitance value of capacitor C6 may also reduce the current that flows through diode D5, which may allow the resistors R6, R7 and R8 to be increased in resistance value. This may reduce these resistors power dissipation, size and cost and may also allow a decrease in the capacitance value of capacitor C5. As such, capacitor C5 may also be changed from an aluminum electrolytic-type capacitor to a smaller, cheaper and longer lived ceramic-type capacitor. Thus, for the circuit of FIG. 7, a first capacitor C6 coupled between the select transistor Q2 and the Zener diode D1 and a second capacitor C5 coupled in parallel with the relay coil K1 may be ceramic capacitors. As a result, the embodiments of FIG. 7 may provide a long life, efficient, high-load capacity and inexpensive photocontrol.

As the technology of street lighting advances, more efficient and longer life lamps are being introduced. While previously a typical street lamp generally lasted three years before replacement was necessary, new street lamps last as long as 20 years. Accordingly, a photocontrol that can be guaranteed for a 20-year life may also be desirable. Such an extended life may be provided by embodiments as illustrated in FIGS. 6 and 7.

In contrast, typical conventionally available photocontrols contain aluminum electrolytic capacitors. Such photocontrols are generally rated at a lifetime of 5,000 hours (208 days). By operating photocontrols at much lower voltages and temperatures than their maximum ratings, they typically last up to three years but not the desired 20 years. By allowing practical use of long-life capacitors, such as ceramic-type capacitors, circuit life can be significantly increased as ceramic capacitors typically last extreme lengths of time. Furthermore, as new LED-type lamps tend to be lower in power, the power dissipation component of the photocontrol circuit itself becomes a greater percentage of the total efficiency equation for the lighting. As such, reductions of energy consumption of the photocontrol circuit are also beneficial.

The foregoing is illustrative of the present invention and is not to be construed as limiting thereof. Although a few exemplary embodiments of this invention have been described, those skilled in the art will readily appreciate that many modifications are possible in the exemplary embodiments without materially departing from the novel teachings and advantages of this invention. Accordingly, all such modifications are intended to be included within the scope of this invention as defined in the claims. In the claims, means-plus-function clauses are intended to cover the structures described herein as performing the recited function and not only structural equivalents but also equivalent structures. Therefore, it is to be understood that the foregoing is illustrative of the present invention and is not to be construed as limited to the specific embodiments disclosed, and that modifications to the disclosed embodiments, as well as other embodiments, are intended to be included within the scope of the appended claims. The invention is defined by the following claims, with equivalents of the claims to be included therein. 

1. A photosensor circuit, comprising: a normally open relay coil configured to control application of an alternating current (AC) power source having a negative half and a positive half of a line cycle to a load; a pulse width modulator circuit configured to generate a pulse width modulated signal having a pulse width that varies responsive to an average voltage across the relay coil; a drive transistor coupled between the relay coil and a neutral bus that controls the average voltage across the relay coil responsive to the pulse width modulated signal; a photo control circuit configured to control application of the pulse width modulated signal to the drive transistor responsive to a detected light level; and a power circuit including a half-wave rectifier coupled to the power source that is configured to provide a power signal to the pulse width modulator circuit and a regulated power signal to the photo control circuit during one of the halves of the line cycle of the AC power source, wherein the power signal comprises a square wave and the power circuit further includes a rectifier circuit and a voltage divider circuit configured to generate the regulated power signal from the power signal; wherein the photo control circuit comprises: a phototransistor, the phototransistor having a first terminal coupled to the regulated power signal through a first resistor and a second terminal that outputs a current responsive to a level of light detected by the phototransistor; a low pass filter circuit coupled to the first terminal of the phototransistor that filters the output current of the phototransistor to provide a light level signal voltage; and a select transistor that couples the pulse width modulated signal to the drive transistor during the one of the halves of the line cycle of the AC power source responsive to the light level signal voltage having a selected level.
 2. The photosensor circuit of claim 1, wherein the rectifier circuit comprises a diode having a first terminal coupled to the power signal and a second terminal coupled to the voltage divider circuit and wherein the photosensor circuit further comprising a first capacitor coupled between the second terminal of the phototransistor and the second terminal of the rectifier circuit diode that modulates an amount of positive feedback through the first terminal of the phototransistor proportional to a current flowing through the relay coil to provide hysteresis to control of the relay coil by the photosensor circuit and a second capacitor coupled between the first and second terminal of the phototransistor.
 3. The photosensor circuit of claim 1, wherein the drive transistor comprises a Darlington pair of transistors.
 4. The photosensor circuit of claim 3, wherein the Darlington pair of transistors comprises a first transistor and a second transistor, the first transistor having an emitter coupled to a base of the second transistor and wherein the circuit further comprises a resistor coupled between the base of the second transistor and the neutral bus.
 5. The photosensor circuit of claim 3, further comprising a resistor coupled between the normally open relay coil and the drive transistor and a capacitor coupled between a terminal of the select transistor that couples the pulse width modulated signal to the drive transistor and the resistor coupled between the normally open relay coil and the drive transistor.
 6. The photosensor circuit of claim 2, wherein the pulse width modulator circuit includes a Zener diode coupled between the second terminal of the phototransistor and the power signal and wherein the pulse width of the pulse width modulated signal varies proportionally with a difference between a Zener voltage of the Zener diode and the average voltage across the relay coil and wherein the phototransistor defines a current path for a positive feedback signal generated across the Zener diode to provide the positive feedback.
 7. The photosensor circuit of claim 6, further comprising a radio frequency filter circuit including a resistor that couples the Zener diode to the power signal and a capacitor coupled between the select transistor and the drive transistor.
 8. The photosensor circuit of claim 6, wherein the photosensor circuit comprises a street lighting photo control device and the load comprises street lighting and the relay coil is configured to activate to switch on the street lighting responsive to detection of less than a minimum light level by the phototransistor.
 9. The photosensor circuit of claim 1, wherein the lowpass filter circuit comprises a delay resistor having a first terminal coupled to the first terminal of the photosensor and a delay capacitor coupled between a second terminal of the delay resistor and the neutral bus that are configured to provide the low pass filter circuit an asymmetric delay providing different turn off and turn on times for the load.
 10. The photosensor circuit of claim 9, wherein the lowpass filter circuit further comprises a filter transistor coupled to the regulated power supply, the first terminal of the delay resistor and the second terminal of the delay resistor.
 11. The photosensor of claim 9, wherein the photosensor circuit comprises a street lighting photo control device and the load comprises street lighting and wherein the photosensor circuit is configured to turn on the street lighting more rapidly than it turns off the street lighting.
 12. The photosensor circuit of claim 11, wherein the one of the halves of the line cycle of the AC power source comprises the positive half and wherein the half wave rectifier includes a resistor coupled to the AC power source that provides a negative current that activates the drive transistor during the negative half of the line cycle.
 13. A photosensor circuit, comprising: a relay coil configured to control application of an alternating current (AC) power source having a negative half and a positive half of a line cycle to a load; a pulse width modulator circuit configured to generate a pulse width modulated signal having a pulse width that varies responsive to an average voltage across the relay coil; a drive transistor coupled between the relay coil and a neutral bus that controls the average voltage across the relay coil responsive to the pulse width modulated signal, wherein the drive transistor comprises a Darlington pair of transistors; a photo control circuit configured to control application of the pulse width modulated signal to the drive transistor responsive to a detected light level; and a half-wave rectifier coupled to the power source that is configured to provide a power signal to the pulse width modulator circuit and the photo control circuit during one of the halves of the line cycle of the AC power source; wherein the photo control circuit comprises: a phototransistor, the phototransistor having a first terminal coupled to the power signal and a second terminal that outputs a current responsive to a level of light detected by the phototransistor; a low pass filter circuit coupled to the second terminal of the phototransistor that filters the output current of the phototransistor to provide a light level signal voltage; a select transistor that couples the pulse width modulated signal to the drive transistor during the one of the halves of the line cycle of the AC power source responsive to the light level signal voltage having a selected level; and a capacitor coupled between the second terminal of the phototransistor and the neutral bus that modulates an amount of positive feedback through the first terminal of the phototransistor proportional to a current flowing through the relay coil to provide hysteresis to control of the relay coil by the photosensor circuit.
 14. The photosensor circuit of claim 13, wherein the Darlington pair of transistors comprises a first transistor and a second transistor, the first transistor having an emitter coupled to a base of the second transistor and wherein the circuit further comprises a resistor coupled between the base of the second transistor and the neutral bus.
 15. The photosensor circuit of claim 14, wherein the pulse width modulator circuit includes a Zener diode coupled between the first terminal of the phototransistor and the neutral bus and wherein the photosensor circuit further comprises a resistor that couples the Zener diode to the first terminal of the phototransistor and a capacitor coupled in parallel with the resistor and the phototransistor.
 16. The photosensor circuit of claim 13, wherein the photo control circuit further comprises a first capacitor coupled between the select transistor and the Zener diode and wherein the pulse width modulator circuit includes a second capacitor coupled in parallel with the relay coil, wherein the first and second capacitors comprise ceramic capacitors. 